package com.cw.service;

import com.cw.entity.AuthorityPrehospital;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ly
 * @since 2021-09-03
 */
public interface IAuthorityPrehospitalService extends IService<AuthorityPrehospital> {

    /**
     * 院前准备中心科室权限-插入
     * @author ly
     * @since 2021-09-03 10:28
     * @param authorityPrehospital 插入的信息
     * @return java.lang.boolean
     */
    boolean insertAuthorityPrehospital(AuthorityPrehospital authorityPrehospital);

    /**
     * 通过用户主键获取他对应的权限-分页版
     * @author ly
     * @since 2021-09-03 10:36
     * @param userId 用户主键
     * @return java.util.List<com.cw.entity.AuthorityPrehospital>
     */
    PageInfo<AuthorityPrehospital> getAuthorityPrehospitalbyUserId(String userId, Integer pageNum, Integer pageSize);

    /**
     * 通过用户主键获取他对应的权限
     * @param userId 用户主键
     * @param yard 院区
     * @return java.util.List<com.cw.entity.AuthorityPrehospital>
     * @author ly
     * @since 2021-09-03 10:36
     */
    List<AuthorityPrehospital> getAuthorityPrehospitalbyUserId(String userId,String yard);
}
